﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WordNet.Core.ElementContracts;
using WordNet.Core.Relations;

namespace WordNet.Core
{
    public class AntonymNode:WordNodeBase, IAntonym
    {
        List<ISynset> _relatedSynsets;
        public AntonymNode(IWord wn)
        {
            _wordNode = wn;
            _relatedSynsets = new List<ISynset>();
        }

        public IWordNode Antonym
        {
            get ; set;
        }

        public ISynset[] RelatedSynsets
        {
            get { return _relatedSynsets.ToArray(); }
        }

        public void AddRelatedSynsets(ISynset synset)
        {
            _relatedSynsets.Add(synset);
        }


        public IWord Indirect
        {
            get; set;
        }
    }
}
